var routers = [{
    name: 'login',
    path: '/',
    redirect: '/views/common/login'
},
{
    name: "主页",
    path: '/views/common/index',
    component: resolve => require(['./views/common/index.vue'], resolve),
    children: [
        {
            name: "用户管理",
            path: '/views/page/user',
            component: resolve => require(['./views/page/user.vue'], resolve)
        },
        {
            name: "角色管理",
            path: '/views/page/role',
            component: resolve => require(['./views/page/role.vue'], resolve)
        },
        {
            name: "菜单管理",
            path: '/views/page/menu',
            component: resolve => require(['./views/page/menu.vue'], resolve)
        }
    ]
},
{
    path: '/views/common/login',
    component: resolve => require(['./views/common/login.vue'], resolve)
}
]
export default routers;